{template pifaleft}
<div class="rightmenu">
 <div class="search">
 	添加自定义路线分类
 </div> 
<form action="" method="post" name="modiform" id="modiform">
<input type="hidden" name="submit" value="1" />
    <DL>
      <DT>分类名称：<EM>&nbsp;</EM></DT>
      <DD class="ru"><INPUT class="text text100" id="catename" maxLength=12 name="catename" /><SPAN style="color:red;padding-left:10PX;">*</SPAN> </DD>
	</DL>
  <div class="adsubdiv"><input type="hidden" value="{$uid}" name="uid" />
  	<input type="image" src="{SITE_URL}css/user/adminsub.gif" />
    </div>	
    </form>
  <div  class="tabprice">
    <ul style="background-color:#f9fafe;">
      	<li class="tw80">分类ID</li>
	    <li class="tw80 ">分类名称</li>
	    <li class="tw80 ">操作</li>
      </ul>
      {loop $list $value}
    <ul class="bod1_bot">
        <li class="tw80">{$value[cate_id]}</li>
        <li class="tw80 ">{$value[catename]}</li> 
        <li class="tw80"><a href="?line/linecatedelete/{$value[cate_id]}" onclick="return DelConfirm();">删除</a></li>
    </ul>
    {/loop}
  </div>    
</div>

<script>
$('#modiform').submit(function(){
	if ($('#catename').val() == '') {
		alert ('分类名称不能为空！');
		$('#catename').focus();
		return false;
	}
})
</script>
<!-- bottom-->
{template footer}